package com.xue.bean;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @program: springboot-outbreak
 * @description: 柱状图
 * @create: 2020-05-28 14:41
 **/

@Data
@AllArgsConstructor
public class GraphColumnarBean implements Comparable<GraphColumnarBean>{

    private String area;
    private int fromAbroad;

    @Override
    public int compareTo(GraphColumnarBean o) {
        return o.getFromAbroad() - this.getFromAbroad();
    }
}
